package com.itheima.xx.service;

import com.itheima.xx.dao.RoleMapper;
import com.itheima.xx.pojo.Role;
import com.itheima.xx.util.SqlSessionUtil1;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

/**
 * Description:
 *
 * @author codermao
 * @date 2023/10/28 17:13
 */
public class RoleServiceImpl {
    public List<Role> queryAllRolesAndPermission(int startIndex, int pageSize) {
        SqlSession session = SqlSessionUtil1.getSession();
        RoleMapper roleMapper = session.getMapper(RoleMapper.class);

//        List<Role> list =  roleMapper.queryAllRolesAndPermission(startIndex,pageSize);

        session.close();
//        return list;
        return null;
    }
}
